﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FPC.Offer.UI.GeneralProcessor.Message
{
    /// <summary>
    /// DeleteSendMessage 的摘要说明
    /// </summary>
    public class DeleteSendMessage : IHttpHandler
    {
        FPC.Offer.Service.Message_SendMessageService PoliceMessage = new Service.Message_SendMessageService();

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            context.Response.Write("Hello World");
            string id = context.Request["ReceiveId"].ToString();
            if (PoliceMessage.or_deletes(id) > 0)
            {

                context.Response.Write(1);

            }
            else
            {
                context.Response.Write(0);

            }

        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}